package com.bingo.demo;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
public class Test {

    @Autowired
    private RedisTemplate redisTemplate;

    @org.junit.Test
    public void test(){
        RedisConnection connection = redisTemplate.getConnectionFactory().getConnection();
        connection.ping();
    }
}
